import { Channel } from './Channel';

export class Constants {

    static readonly PAGE_BG_COLOR = '#E4EBF5';

    static readonly VIEWPORT_50 = '50vp';

    static readonly BORDER_RADIUS_4_PX = 4;
    static readonly BORDER_RADIUS_8_PX = 8;
    static readonly BORDER_RADIUS_16_PX = 16;

    static readonly FULL_WIDTH = '100%';
    static readonly FULL_HEIGHT = '100%';

    static readonly W_90 = "90%";

    static readonly H_TITLE = 64;

    static readonly MP_12 = 12;
    static readonly BORDER_RADIUS = 4;

    static readonly LOG_TAG_NAME = "[DNLog]";

    static readonly SERVER_URL = "https://apis.tianapi.com";

    static readonly CHANNEL_ARR: Array<Channel> = [
        { id: 5, type: "社会新闻" },
        { id: 7, type: "国内新闻" },
        { id: 8, type: "国际新闻" },
        { id: 10, type: "娱乐新闻" },
        { id: 12, type: "体育新闻" },
        { id: 13, type: "科技新闻" },
        { id: 17, type: "健康知识" },
        { id: 18, type: "旅游资讯" },
        { id: 22, type: "IT资讯" },
        { id: 24, type: "创业资讯" },
        { id: 26, type: "足球新闻" }
    ];
}